#pragma once
class CProgressMgr
{
public:
	CProgressMgr(): m_hThread( NULL )
   , m_hShutdownEvent( ::CreateEvent( NULL, TRUE, FALSE, NULL ) )
	{

	}
	~CProgressMgr()
	{
		ShutdownThread( );
   ::CloseHandle( m_hShutdownEvent );
	}
   HRESULT Pause( )           { Sleep( 1000 ); return S_OK; }
   HRESULT Resume( )          { Sleep( 1000 ); return S_OK; }
   HRESULT Start( HWND hWnd ) { Sleep( 1000 ); return S_OK; }
   HRESULT Stop( )            { Sleep( 1000 ); return S_OK; }

private:
	HANDLE m_hThread; // Secondary thread handle 
	HANDLE m_hShutdownEvent; // Shutdown Event handle
};